package oop4.graph;

public class Circle extends Graph {
    final double PI = 3.1415926;
    double radius, area, round;

    public Circle(double radius) {
        this.radius = radius;
    }

    @Override
    public double getArea() {
        area = PI * radius * radius;
        return (int)(area*100)/100.0;
    }

    @Override
    public double getRound() {
        round = 2 * PI * radius;
        return (int)(round*100)/100.0;
    }
}
